/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.dependenceinvesion.violation.impl;

import za.ac.cput.assignment2.dependenceinvesion.violation.BankAccountInterface;

/**
 *
 * @author yandiswa
 */
public class BankAccountImpl implements BankAccountInterface {

    String accountNumber;
    double balance;
  @Override
    public void addFunds(double value) {
        balance += value;
    }
@Override
    public void removeFunds(double value) {
        balance -= value;
    }
@Override
    public void setAccountNumber(String accNumber)
    {
        accountNumber = accNumber;
    }
@Override
    public String getAccountNumber()
    {
        return accountNumber;
    }
@Override
    public void setBalance(double balance)
    {
        this.balance = balance;
    }
@Override
    public double getBalance()
    {
        return balance;
    }

   
    
}
